﻿<style> 
.citysel td a:link,.citysel td a:visited{color:#009af2;}
.citysel th a:link,.citysel th a:visited{ color:#369; margin-right:5px;}
.citysel td a:hover,.citysel th a:hover{ color:#FFF;}
</style>
<table width="390" border="0" cellspacing="0" cellpadding="0">
<tr>
  <th>
        <a id="1" href="javascript:chooseCity('1','合肥');">合肥</a>
        <a id="2" href="javascript:chooseCity('2','芜湖');">芜湖</a>
        <a id="3" href="javascript:chooseCity('3','安庆');">安庆</a>
        <a id="4" href="javascript:chooseCity('4','马鞍山');">马鞍山</a>
</th>
</tr>
<tr>
  <td>
        <a id="1" href="javascript:chooseCity('1','合肥');">合肥</a>
        <a id="2" href="javascript:chooseCity('2','芜湖');">芜湖</a>
        <a id="3" href="javascript:chooseCity('3','安庆');">安庆</a>
        <a id="4" href="javascript:chooseCity('4','马鞍山');">马鞍山</a>
        <a id="5" href="javascript:chooseCity('5','六安');">六安</a>
        <a id="6" href="javascript:chooseCity('6','蚌埠');">蚌埠</a>
        <a id="7" href="javascript:chooseCity('7','淮南');">淮南</a>
        <a id="8" href="javascript:chooseCity('8','淮北');">淮北</a>
        <a id="9" href="javascript:chooseCity('9','铜陵');">铜陵</a>
        <a id="10" href="javascript:chooseCity('10','黄山');">黄山</a>
        <a id="11" href="javascript:chooseCity('11','滁州');">滁州</a>
        <a id="12" href="javascript:chooseCity('12','阜阳');">阜阳</a>
        <a id="13" href="javascript:chooseCity('13','宿州');">宿州</a>
        <a id="14" href="javascript:chooseCity('14','巢湖');">巢湖</a>
        <a id="15" href="javascript:chooseCity('15','毫州');">毫州</a>
        <a id="16" href="javascript:chooseCity('16','池州');">池州</a>
        <a id="17" href="javascript:chooseCity('17','宣城');">宣城</a>
  </td>
</tr>
</table>
<script language="javascript">
    function chooseCity(cityId, cityName) {
        //设置城市Id
        setCookie("ztyingonde", cityId, 10, "/");
        //设置城市名称
        setCookie("cityname", cityName, 10, "/");

        location.href = location.href;
    }
</script>

